﻿@model Forest.Lion.Web.Models.JobPosition.JobPositionListItemModel
@using Forest.Lion.Domain.Shared;
<tr>
    <td>
        @Html.CheckBoxFor(x => x.ItemChecked, new { @class = "itemChecked" })
    </td>
    <td>
        <img src="images/tag2.png" width="24" height="24" />
    </td>
    <td>
        @Html.DisplayFor(x => x.SortOrder)
    </td>
    <td>
        @Html.TextBoxFor(x => x.SortOrder, new { @class = "sortOrder", style = "width:30px", maxlength = "2", idValue = Model.Id, oldValue = Model.SortOrder })
    </td>
    <td>
        @Html.HiddenFor(x => x.JobTitle)
        @Html.DisplayFor(x => x.JobTitle)
    </td>
    <td>
        @Html.DisplayFor(x => x.DepartmentName)
    </td>
    <td>
        @Html.DisplayFor(x => x.Address)
    </td>
    <td>
        @Html.DisplayFor(x => x.DateCreated)
    </td>
    <td>
        @Html.DisplayFor(x => x.StartDate)
    </td>
    <td>
        @Html.DisplayFor(x => x.Reposted)
    </td>
    <td>
        @Html.DisplayFor(x => x.EndDate)
    </td>
    <td>
        @Html.DisplayFor(x => x.DateDeleted)
    </td>
    <td>
    </td>
    <td>
        @Html.HiddenFor(x => x.Id, new { id = "hidId" })
        @Html.HiddenFor(x => x.Status, new { id = "hidStatus" })
        @Html.ActionLink("编辑", "Edit", new { id = Model.Id }, new { id = "btnEdit", style = Model.Deleted ? "display:none" : "" })
        <a href="#" class="restore" style="@(!Model.Deleted ? "display:none" : "")">还原</a>
        <button class="select" style="@(Model.Deleted ? "display:none" : "")" >
        </button>
    </td>
</tr>
